﻿@using DeviceMaintainGIS.Model.DevProRelation;
@{
    Layout = null;
    ViewBag.Title = "DevProRelationAdd";
    List<CodeType> CodeTypeList = ViewBag.CodeTypeList;
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>设备关系添加</title>

</head>
<body>
    <div style="padding: 15px; overflow: hidden">
        <form id="DevProRelationAddForm" method="post" action="">
            <table class="tableForm" width="100%">

                <tr>
                    <th>
                        请选择设备：
                    </th>
                    <td>

                        <input class="easyui-combobox" name="selDev" id="selDev" data-options="required:true,valueField:'id',textField:'text',panelHeight:'auto',panelMaxHeight:200,panelMinHeight:100" style="width: 160px;height: 29px" />
                    </td>
                </tr>
                <tr>
                    <th>
                        出库途径类型：
                    </th>
                    <td>
                        <select id="selCodeType" data-options="required:true">
                            <option value="0">请选择</option>
                            @foreach (CodeType ltm in CodeTypeList)
                            {

                                <option value="@ltm.CodeId">@ltm.CodeTypeName</option>
                            }

                        </select>
                    </td>
                </tr>
                <tr>
                    <th>
                        出库途径编号：
                    </th>
                    <td>
                        <input type="text" name="txtCode" id="txtCode" class="easyui-validatebox textbox" data-options="required:true" style="width:170px;height:22px;" />
                    </td>
                </tr>


                <tr>
                    <th>
                        工程重命名：
                    </th>
                    <td>
                        <input type="text" name="txtReName" id="txtReName" class="easyui-validatebox textbox" data-options="required:true" style="width:170px;height:22px;" />


                    </td>
                </tr>

                <tr>
                    <th>
                        基站信息：
                    </th>
                    <td>
                        <input class="easyui-combobox" name="selLoca" id="selLoca" data-options="valueField:'id',textField:'text',panelHeight:'auto',panelMaxHeight:200,panelMinHeight:100" style="width: 160px;height: 29px" />
                    </td>
                </tr>
                <tr>
                    <th>
                        质保期：
                    </th>
                    <td>
                        <input type="text" name="txtWarrantyTime" id="txtWarrantyTime" class="easyui-datebox" data-options="required:true" 
                               editable="false" style="width:150px;height:22px;" />
                    </td>
                </tr>
                <tr>
                    <th>
                        设备状态：
                    </th>
                    <td>
                        <select id="selState" data-options="required:true">
                            <option value="1" selected>已出库</option>
                            <option value="2">报废</option>

                        </select>
                    </td>
                </tr>
                <tr>
                    <th>
                        出库或报废时间：
                    </th>
                    <td>
                        <input type="text" name="txtDateTime" id="txtDateTime" class="easyui-datebox"  data-options="required:true" value="@System.DateTime.Now.ToString("yyyy-MM-dd")"
                               editable="false" style="width:150px;height:22px;" />
                    </td>
                </tr>
                <tr>
                    <th>
                        备注：
                    </th>
                    <td>

                        <textarea rows="3" cols="50" name="txtRemark" id="txtRemark" class="easyui-validatebox"></textarea>
                    </td>
                </tr>
            </table>
        </form>
    </div>

</body>
</html>
